# uncompyle6 version 3.2.3
# Python bytecode 3.6 (3379)
# Decompiled from: Python 3.6.8 |Anaconda custom (64-bit)| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)]
# Embedded file name: helpers\constants\scans.py


class ScanStatusTypes:
    SCHEDULED = "scheduled"
    QUEUED = "queued"
    STARTING = "starting"
    PROCESSING = "processing"
    ABORTING = "aborting"
    ABORTED = "aborted"
    PAUSING = "pausing"
    PAUSED = "paused"
    RESUMING = "resuming"
    FAILED = "failed"
    COMPLETED = "completed"


class ScanApiStatusTypes:
    PREPARING = "preparing"
    EXECUTING = "executing"
    ABORTING = "aborting"
    ABORTED = "aborted"
    PAUSING = "pausing"
    PAUSED = "paused"
    FAILED = "failed"
    FINISHED = "finished"


TargetsInWorkScanStatus = {
    ScanStatusTypes.QUEUED,
    ScanStatusTypes.STARTING,
    ScanStatusTypes.PROCESSING,
    ScanStatusTypes.RESUMING,
    ScanStatusTypes.ABORTING,
    ScanStatusTypes.PAUSING,
}
FinishedScanJobsStatusTypes = {
    ScanStatusTypes.COMPLETED,
    ScanStatusTypes.FAILED,
    ScanStatusTypes.ABORTED,
    ScanStatusTypes.PAUSED,
}
ActiveScanTypes = {
    ScanStatusTypes.STARTING,
    ScanStatusTypes.PROCESSING,
    ScanStatusTypes.ABORTING,
    ScanStatusTypes.PAUSING,
    ScanStatusTypes.RESUMING,
}
ActiveScanTypesExt = {
    ScanStatusTypes.STARTING,
    ScanStatusTypes.PROCESSING,
    ScanStatusTypes.ABORTING,
    ScanStatusTypes.PAUSING,
    ScanStatusTypes.RESUMING,
    ScanStatusTypes.QUEUED,
}


class ScanPauseReasonTypes:
    USER = "user"
    EXCLUDED_HOURS = "excluded_hours"


class ScanJobEventLevel:
    CRITICAL = 2
